﻿<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="NewsDetailControl.ascx.vb" Inherits="LinhKienMayTinh.NewsDetailControl" %>
<%
    If IsNothing(DataSource) = False AndAlso DataSource.Tables(0).Rows.Count > 0 Then
%>
<div class="news-detail">
    <div id="social-span">
        <a href="https://www.facebook.com/sharer/sharer.php?u=<%=Request.Url.AbsoluteUri%>" target="_blank">
            <img src="<%=ResolveUrl("~/") %>Style/images/facebook.gif" title="Facebook" alt="Facebook">
        </a>        
    </div>
    <div class="news-title">
        <h2>
            <asp:Label ID="lbName" runat="server"></asp:Label></h2>
    </div>
    <div class="news-ud-date">
        <span>
            <asp:Label ID="lbUdDate" runat="server"></asp:Label>
        </span>
    </div>
    <div class="news-summary">
        <span>
            <asp:Label ID="lbSummary" runat="server"></asp:Label></span>
    </div>
    <div class="news-content">
        <asp:Literal ID="ltContent" runat="server"></asp:Literal>
    </div>
    <div class="news-tag">
        <span>Tags:</span>
        <ul>
            <%
                If ListTag IsNot Nothing AndAlso ListTag.Count > 0 Then
                    For Each tag In ListTag
                        If Not String.IsNullOrEmpty(Trim(tag)) Then
            %>
            <li><a href="<%= ResolveUrl("~/tin-tuc/search/" & tag)%>/" title="<%= tag%>"><%=tag%></a></li>
            <%
            End If
        Next
    End If
            %>
        </ul>
    </div>
    <div id="fb-like">
        <iframe src="//www.facebook.com/plugins/like.php?href=<%=Request.Url.AbsoluteUri%>;width=450&amp;height=21&amp;colorscheme=light&amp;layout=button_count&amp;action=like&amp;show_faces=true&amp;send=false" scrolling="no" frameborder="0" style="border: none; overflow: hidden; width: 450px; height: 21px;" allowtransparency="true"></iframe>
    </div>
</div>
<%Else%>
<div class="news-detail">
    <h3>Tin này không tồn tại.</h3>
</div>
<%End If%>